import { createWebHashHistory, createRouter } from "vue-router";
import homeRouterRouter from "./home";
import aboutRouter from "./about";
const Login = () => import("../views/Login");
const NotFound = () => import("../views/NotFound/404");
const routes = [
  //重定向
  { path: "/", redirect: "/login", hidden: true },
  { path: "/login", component: Login, name: "login", hidden: true },
  homeRouterRouter,
  aboutRouter,
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: NotFound,
    hidden: true,
  },
];
// export { routes };
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
